package cn.zebra.dev.shop.module.delivery.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Collection;

/**
 * 运费模板(子表)
 *
 * @author runnable
 */
@TableName("delivery_item")
@Getter
@Setter
public class DeliveryItemEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("运费模板(主表)id")
    private Long deliveryId;

    @ApiModelProperty("城市id数组Json")
    private String cityIdArrayJson;

    @ApiModelProperty("首件(个) 或 首重(kg)")
    private BigDecimal firstNum;

    @ApiModelProperty("首件运费(或首重运费)")
    private BigDecimal firstPrice;

    @ApiModelProperty("续件(个) 或 续重(kg)")
    private BigDecimal continuaNum;

    @ApiModelProperty("续件运费(或续重运费)")
    private BigDecimal continuaPrice;

    @TableField(exist = false)
    private Collection<Long> cityIds;
}
